package com.code9xs.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.naming.spi.DirStateFactory;
import javax.xml.transform.Result;

@Controller
@ResponseBody
@Slf4j
public class TestController {

    @GetMapping("test")
    public String test(){
        System.out.println("测试日志");
        log.info("info日志");
        log.warn("warn日志");
        log.error("error日志");
        log.debug("debug日志");
        return "succeed";
    }
}
